import http from "./request"

// 查询学院列表
export const getCollageListApi = async () => {
    return await http.get('/api/major/getCollageList', null)
}

// 新增专业
export const addMajorApi = async (parm) => {
    return await http.post('/api/major', parm)
}

// 删除专业
export const deleteMajorApi = async (parm) => {
    return await http.delete('/api/major', parm)
}

// 编辑专业
export const editMajorApi = async (parm) => {
    return await http.put('/api/major', parm)
}

// 专业列表
export const listApi = async (parm) => {
    return await http.get('/api/major/list', parm)
}